<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>选择添加商品是的栏目</title>
	 <link rel="stylesheet" href="http://localhost/Gshop/Gshop/Gshop/Admin/Tpl/Public/css/index.css">
	<script src="http://localhost/Gshop/Gshop/Gshop/Admin/Tpl/Public/js/jquery-1.7.2.min.js"></script>
	<script src="http://localhost/Gshop/Gshop/Gshop/Admin/Tpl/Public/js/js.js"></script>
</head>
<body>
	<div class="wrap">
		<div class="menu_list">
			<ul>
				<li>
					<a href="<?php echo U(index);?>" >商品列表</a>
				</li>
				<li>
					<a href="javascript:;" class="action">添加商品</a>
				</li>
			</ul>
		</div>
		<div class="title-header">选择栏目类型</div>
		<form action="<?php echo U(add);?>" method="post" class="form">
			<select name="gtid_cid" id=""   class="w400" size="20">
			<?php $hd["list"]["cate"]["total"]=0;if(isset($category) && !empty($category)):$_id_cate=0;$_index_cate=0;$lastcate=min(1000,count($category));
$hd["list"]["cate"]["first"]=true;
$hd["list"]["cate"]["last"]=false;
$_total_cate=ceil($lastcate/1);$hd["list"]["cate"]["total"]=$_total_cate;
$_data_cate = array_slice($category,0,$lastcate);
if(count($_data_cate)==0):echo "";
else:
foreach($_data_cate as $key=>$cate):
if(($_id_cate)%1==0):$_id_cate++;else:$_id_cate++;continue;endif;
$hd["list"]["cate"]["index"]=++$_index_cate;
if($_index_cate>=$_total_cate):$hd["list"]["cate"]["last"]=true;endif;?>

				<option value="<?php echo $cate['gtid'];?>|<?php echo $cate['cid'];?>"><?php echo $cate['_name'];?></option>
			<?php $hd["list"]["cate"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		          </select>
		          <div class="position-bottom">
		          	<input type="submit" value="确定" class="btn">
		          </div>
		</form>
	</div>
</body>
</html>




